/*
 * @Author: mhb
 * @Date: 2021-11-23 11:08:06
 * @LastEditTime: 2022-10-12 15:30:34
 * @LastEditors: Please set LastEditors
 * @Description: 系统模块路由
 * @FilePath: \cscec-pms-admin\src\config\routers\system.js
 */
import { RouteView } from '@/layouts'

export default {
    path: '/system',
    redirect: '/system/userManage',
    component: RouteView,
    name: 'system',
    meta: {
        title: '系统',
        icon: 'user'
    },
    children: [
        {
            path: '/systemManage/logManagement',
            name: 'logManagement',
            meta: {
                title: '第三方对接日志管理'
            },
            redirect: '/systemManage/logManagement/errorRecord',
            component: RouteView,
            children: [
                {
                    path: '/systemManage/logManagement/errorRecord',
                    name: 'errorRecord',
                    meta: {
                        title: '错误记录'
                    },
                    component: () => import('@/views/systemManage/logManagement/errorRecord')
                },
                {
                    path: '/systemManage/logManagement/requestRecord',
                    name: 'SystemRoleManage',
                    meta: {
                        title: '请求记录'
                    },
                    component: () => import('@/views/systemManage/logManagement/requestRecord')
                }
            ]
        },
        {
            path: '/system/gateway',
            name: 'systemGateway',
            meta: {
                title: '门户页面'
            },
            redirect: '/system/gatewayList',
            component: RouteView,
            children: [
                {
                    path: '/system/gatewayList',
                    name: 'gatewayList',
                    meta: {
                        title: '门户快捷入口维护'
                    },
                    component: () => import('@/views/systemManage/gateway')
                },
            ]
        },
        {
            path: '/systemManage/menuPermissions',
            name: 'menuPermissions',
            meta: {
                title: '系统菜单及权限管理'
            },
            redirect: '/systemManage/menuPermissions/menuManage',
            component: RouteView,
            children: [
                {
                    path: '/systemManage/menuPermissions/menuManage',
                    name: 'menuManage',
                    meta: {
                        title: '系统菜单管理'
                    },
                    component: () => import('@/views/systemManage/menuPermissions/menuManage')
                },
                {
                    path: '/systemManage/menuPermissions/systemRoleManage',
                    name: 'SystemRoleManage',
                    meta: {
                        title: '系统角色管理'
                    },
                    component: () => import('@/views/systemManage/menuPermissions/systemRoleManage')
                },
                {
                    path: '/systemManage/menuPermissions/systemRoleManage/updateRole',
                    name: 'UpdateRole',
                    meta: {
                        title: '角色管理',
                        noTab: true,
                        parent: {
                            title: '系统角色管理',
                            path: '/systemManage/menuPermissions/systemRoleManage'
                        }
                    },
                    component: () => import('@/views/systemManage/menuPermissions/systemRoleManage/UpdateSystemRoleManage')
                },
                {
                    path: '/systemManage/menuPermissions/authManage',
                    name: 'AuthManage',
                    meta: {
                        title: '系统权限管理'
                    },
                    component: () => import('@/views/systemManage/menuPermissions/authManage')
                },
                {
                    path: '/systemManage/menuPermissions/authManage/UpdateAuthManage',
                    name: 'UpdateAuthManage',
                    meta: {
                        title: '用户权限',
                        noTab: true,
                        parent: {
                            title: '系统权限管理',
                            path: '/systemManage/menuPermissions/authManage'
                        }
                    },
                    component: () => import('@/views/systemManage/menuPermissions/authManage/UpdateAuthManage')
                }
            ]
        },
        {
            path: '/system/systemUserManage',
            name: 'systemUserManage',
            meta: {
                title: '系统用户管理'
            },
            redirect: '/system/userManage',
            component: RouteView,
            children: [
                {
                    path: '/system/userManage',
                    name: 'userManage',
                    meta: {
                        title: '公司用户管理'
                    },
                    component: () => import('@/views/systemManage/userManage/index')
                },

                {
                    path: '/systemManage/userManage/updateUser',
                    name: 'UpdateAuthManageByUser',
                    meta: {
                        title: '用户信息',
                        noTab: true,
                        parent: {
                            title: '公司用户管理',
                            path: '/system/userManage'
                        },
                        isUser: true
                    },
                    component: () => import('@/views/systemManage/menuPermissions/authManage/UpdateAuthManage')
                },
                {
                    path: '/system/systemUserManage/ownersManage',
                    name: 'OwnersManage',
                    meta: {
                        title: '业主用户管理'
                    },
                    component: () => import('@/views/systemManage/systemUserManage/ownersManage')
                },
                {
                    path: '/system/systemUserManage/subcontractorManage',
                    name: 'SubcontractorManage',
                    meta: {
                        title: '分包商用户管理'
                    },
                    component: () => import('@/views/systemManage/systemUserManage/subcontractorManage')
                },
                {
                    path: '/system/systemUserManage/postsChangeLog',
                    name: 'PostsChangeLog',
                    meta: {
                        title: '岗位变更日志'
                    },
                    component: () => import('@/views/systemManage/systemUserManage/postsChangeLog')
                },
                {
                    path: '/system/systemUserManage/wechatBindInfo',
                    name: 'wechatBindInfo',
                    meta: {
                        title: '微信绑定信息'
                    },
                    component: () => import('@/views/systemManage/systemUserManage/wechatBindInfo')
                }
            ]
        },
        {
            path: '/system/orgManage',
            name: 'OrgManage',
            meta: {
                title: '组织架构管理'
            },
            component: RouteView,
            redirect: '/system/organizationManage',
            children: [
                {
                    path: '/system/organizationManage',
                    name: 'organizationManage',
                    meta: {
                        title: '标准岗位管理'
                    },
                    component: () => import('@/views/systemManage/organizationManage/index')
                },
                {
                    path: '/system/compnayOrg',
                    name: 'CompnayOrg',
                    meta: {
                        title: '公司组织架构',
                        // isCompany: true
                    },
                    component: () => import('@/views/systemManage/organizationManage/companyOrg')
                },
                {
                    path: '/system/organizationManage/updateOrg',
                    name: 'UpdateOrg',
                    meta: {
                        title: '组织信息',
                        noTab: true
                    },
                    component: () => import('@/views/systemManage/organizationManage/UpdateOrg')
                },
                {
                    path: '/system/operationGuide',
                    name: 'OperationGuide',
                    meta: {
                        title: '岗位操作指引',
                    },
                    component: () => import('@/views/systemManage/organizationManage/operationGuide/index.vue')
                },
                {
                    path: '/system/relevanceProject',
                    name: 'relevanceProject',
                    meta: {
                        title: '关联性项目',
                    },
                    component: () => import('@/views/systemManage/organizationManage/relevanceProject/index.vue')
                }
            ]
        },
        {
            path: '/system/systemProcess',
            name: 'systemProcess',
            meta: {
                title: '用户审核'
            },
            component: () => import('@/views/systemManage/systemProcess/index')
        },
        {
            path: '/system/systemProcess/authorizationAudit',
            name: 'authorizationAudit',
            meta: {
                title: '授权审核'
            },
            component: () => import('@/views/systemManage/systemProcess/authorizationAudit')
        },
        {
            path: '/system/organizationManage/postManage',
            name: 'postManage',
            meta: {
                title: '岗位管理'
            },
            component: () => import('@/views/systemManage/organizationManage/postManage')
        },
        {
            path: '/system/roleManage',
            name: 'roleManage',
            meta: {
                title: '角色管理'
            },
            component: () => import('@/views/systemManage/roleManage/index')
        },
        {
            path: '/system/jurisdictionManage',
            name: 'jurisdictionManage',
            meta: {
                title: '权限管理'
            },
            component: () => import('@/views/systemManage/jurisdictionManage/index')
        },
        {
            path: '/systemManage/workflowManagement',
            name: 'workflowManagement',
            meta: {
                title: '工作流'
            },
            redirect: '/systemManage/workflowManagement/monitoring',
            component: RouteView,
            children: [
                {
                    path: '/systemManage/workflowManagement/monitoring',
                    name: 'monitoring',
                    meta: {
                        title: '流程监控'
                    },
                    component: () => import('@/views/systemManage/workflowManagement/monitoring')
                },
                {
                    path: '/systemManage/workflowManagement/process',
                    name: 'errorRecord',
                    meta: {
                        title: '流程管理'
                    },
                    component: () => import('@/views/systemManage/workflowManagement/process')
                },
            ]
        },
    ]
}




